package com.example.imtoken.modules.main.wallet.manage.home

import androidx.recyclerview.widget.DiffUtil
import com.example.imtoken.entitys.app.WalletsEntity
import com.example.imtoken.room.schema.WalletAddressSchema

class HomeWalletManageDiffCallback : DiffUtil.ItemCallback<WalletAddressSchema>() {
    override fun areItemsTheSame(oldItem: WalletAddressSchema, newItem: WalletAddressSchema): Boolean {
        return oldItem.id == newItem.id
    }

    override fun areContentsTheSame(oldItem: WalletAddressSchema, newItem: WalletAddressSchema): Boolean {
        return oldItem == newItem
    }

}